/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.sales.generics.client.inject;

import br.com.sales.generics.client.place.Place;
import br.com.sales.generics.client.presenter.MyMainLayoutPresenter;
import br.com.sales.generics.client.presenter.functions.PopUpFunctionsPresenter;
import br.com.sales.generics.client.utils.User;
import br.com.sales.generics.client.view.MyMainLayoutView;
import br.com.sales.generics.client.view.functions.PopUpFunctionsView;
import com.google.inject.Singleton;
import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;

/**
 *
 * @author v
 */
public class MyMainLayoutModule extends AbstractPresenterModule {

    @Override
    protected void configure() {
        bind(User.class).in(Singleton.class);
        bind(Place.class).in(Singleton.class);
        bindPresenter(MyMainLayoutPresenter.class, MyMainLayoutPresenter.Display.class, MyMainLayoutView.class, MyMainLayoutPresenter.MyProxy.class);
        bind(PopUpFunctionsPresenter.Display.class).to(PopUpFunctionsView.class);
    }

}
